package com.alax.interfaces.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.alax.common.annotation.Excel;
import com.alax.common.core.domain.BaseEntity;

/**
 * API信息对象 api_info
 * 
 * @author alax
 * @date 2025-04-03
 */
public class ApiInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** API ID */
    private Long id;

    /** API名称 */
    @Excel(name = "API名称")
    private String name;

    /** API描述 */
    @Excel(name = "API描述")
    private String description;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 请求方法(GET/POST/PUT/DELETE) */
    @Excel(name = "请求方法(GET/POST/PUT/DELETE)")
    private String method;

    /** 接口地址 */
    @Excel(name = "接口地址")
    private String url;

    /** 状态(0:下线 1:上线 2:维护) */
    @Excel(name = "状态(0:下线 1:上线 2:维护)")
    private Integer status;

    /** 删除标志(0:存在 1:删除) */
    private String delFlag;

    /** 请求参数JSON格式 */
    @Excel(name = "请求参数JSON格式")
    private String requestParams;

    /** 返回示例 */
    @Excel(name = "返回示例")
    private String responseExample;

    /** 每日调用限制 */
    @Excel(name = "每日调用限制")
    private Long dailyLimit;

    /** 每秒请求数限制 */
    @Excel(name = "每秒请求数限制")
    private Long qpsLimit;

    /** 是否需要认证(0:否 1:是) */
    @Excel(name = "是否需要认证(0:否 1:是)")
    private Integer authRequired;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setMethod(String method) 
    {
        this.method = method;
    }

    public String getMethod() 
    {
        return method;
    }

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setRequestParams(String requestParams) 
    {
        this.requestParams = requestParams;
    }

    public String getRequestParams() 
    {
        return requestParams;
    }

    public void setResponseExample(String responseExample) 
    {
        this.responseExample = responseExample;
    }

    public String getResponseExample() 
    {
        return responseExample;
    }

    public void setDailyLimit(Long dailyLimit) 
    {
        this.dailyLimit = dailyLimit;
    }

    public Long getDailyLimit() 
    {
        return dailyLimit;
    }

    public void setQpsLimit(Long qpsLimit) 
    {
        this.qpsLimit = qpsLimit;
    }

    public Long getQpsLimit() 
    {
        return qpsLimit;
    }

    public void setAuthRequired(Integer authRequired) 
    {
        this.authRequired = authRequired;
    }

    public Integer getAuthRequired() 
    {
        return authRequired;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("categoryId", getCategoryId())
            .append("method", getMethod())
            .append("url", getUrl())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("requestParams", getRequestParams())
            .append("responseExample", getResponseExample())
            .append("dailyLimit", getDailyLimit())
            .append("qpsLimit", getQpsLimit())
            .append("authRequired", getAuthRequired())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
